home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Programming / MiniGL / include / mgl / log.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-07  |  1.2 KB  |  55 lines

  1. /*
  2.  * $Id: log.h,v 1.1.1.1 2000/04/07 19:44:51 tfrieden Exp $
  3.  *
  4.  * $Date: 2000/04/07 19:44:51 $
  5.  * $Revision: 1.1.1.1 $
  6.  *
  7.  * (C) 1999 by Hyperion
  8.  * All rights reserved
  9.  *
  10.  * This file is part of the MiniGL library project
  11.  * See the file Licence.txt for more details
  12.  *
  13.  */
  14.  
  15. #ifndef __LOG_H
  16. #define __LOG_H
  17.  
  18. /*
  19. ** Logging was removed in final version
  20. */
  21.  
  22. /*
  23. ** It is probably difficult to support logging of gl calls on other compilers,
  24. ** since the egcs/gcc preprocessor supports variable argument macros, and
  25. ** I am using it :)
  26. */
  27. /*
  28. #ifdef NLOGGING
  29. #define LOG(level, func, format, args...)
  30. #else
  31. #ifdef __PPC__
  32. extern int MGLDebugLevel;
  33. #define LOG(level, func, format, args...) \
  34.     if (MGLDebugLevel >= level)            \
  35.     {                                       \
  36.         kprintf("[MiniGL::%s] ", #func);     \
  37.         kprintf(format , ## args );           \
  38.         kprintf("\n");                         \
  39.     }
  40. #else
  41. extern int MGLDebugLevel;
  42. #define LOG(level, func, format, args...) \
  43.     if (MGLDebugLevel >= level)            \
  44.     {                                       \
  45.         mykprintf("[MiniGL::%s] ", #func);   \
  46.         mykprintf(format , ## args );         \
  47.         mykprintf("\n");                       \
  48.     }
  49. #endif
  50.  
  51. #endif
  52.  
  53. */
  54. #endif
  55.